// MessagesDialog.h

#ifndef __MESSAGES_DIALOG_H
#define __MESSAGES_DIALOG_H

#include "resource.h"

#include "../../../Common/MyFixes.h"

class CMessagesDialog: public CDialogImpl<CMessagesDialog>
{
	public:
	enum { IDD = IDD_DIALOG_MESSAGES};

	BEGIN_MSG_MAP(CMessagesDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_SIZE, OnSize)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)		
	END_MSG_MAP()
  LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  LRESULT OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);
  
  LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	{
		EndDialog(wID);
		return 0;
	}

  CListViewCtrl _messageList;
  void AddMessageDirect(LPCTSTR message);
  void AddMessage(LPCTSTR message);  
  
public:
  const CStringVector *Messages;
  
};

#endif
